<!-- $Id: user_info.htm 16854 2009-12-07 06:20:09Z sxc_shop $ -->
{include file="pageheader.htm"}
<div class="main-div">
<form method="post" action="users.php" name="theForm" onsubmit="return validate()">
<table width="100%" >
  {foreach from=$package_list item=package_list}
  <tr>
    <td class="label" id="goods_count_{$package_list.goods_id}_name">{$package_list.goods_name}:</td>
    <td><input type="text" id="goods_count_{$package_list.goods_id}" name="goods_count_{$package_list.goods_id}" maxlength="60" value="{$package_list.goods_count}" /></td>
  </tr>
  {/foreach}
  <tr>
    <td class="label">帐户变动原因：</td>
    <td><textarea rows="4" cols="60" name="change_desc"></textarea></td>
  </tr>
  <tr>
    <td colspan="2" align="center">
      <input type="submit" value="{$lang.button_submit}" class="button" />
      <input type="reset" value="{$lang.button_reset}" class="button" />
      <input type="hidden" name="act" value="{$form_action}" />
      <input type="hidden" name="id" value="{$user_id}" />    </td>
  </tr>
</table>

</form>
</div>
{insert_scripts files="../js/utils.js,validator.js"}
{literal}
<script language="JavaScript">
<!--

/**
 * 检查表单输入的数据
 */
function validate()
{
    validator = new Validator("theForm");
    
    
    var list = document.forms['theForm'];

    for(var i = 0; i < list.length; i++){
     	if(list[i].id.indexOf('goods_count_') != -1){
     		validator.isInt(list[i].id, document.getElementById(list[i].id+"_name").innerHTML + invalid_isInt, true);
     	}
    }
    validator.required("change_desc",  no_change_desc);
    
    return validator.passed();
}
//-->
</script>
{/literal}
{include file="pagefooter.htm"}
